import http from "@/utils/http";

/* 
*   查询商品详情
*/
export const getGoodsDetail = (id) => {
    return http({
        url: '/goods',
        data: { id },
    });
};

/* 
*   同类推荐(也支持猜你喜欢)
*/
export const getGoodsRelevant = (id) => {
    return http({
        url: '/goods/relevant',
        data: { id },
    });
};